home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ADA Programming Guide
/
ADA Programming Guide.iso
/
ada_a9x
/
z2.ada
< prev
Wrap
Text File
|
1996-01-30
|
430b
|
28 lines
WITH Ada.Text_IO; USE Ada.Text_IO;
PROCEDURE Z2 IS
BEGIN
Put_Line("Main Initiating.");
DECLARE
TASK TYPE T(My_Id : Character := 'a');
T1 : T;
T2 : T('b');
TASK BODY T IS
BEGIN
Put("Task ");
Put(My_Id);
Put_Line(" is running.");
FOR I IN 1 .. 10 LOOP
DELAY 0.04;
Put(My_Id);
END LOOP;
END T;
BEGIN
Null;
END;
New_Line;
Put_Line("Main Terminating.");
END Z2;